package com.yl.mine.viewmodel

import com.yl.common.base.BaseViewModel
import com.yl.common.bean.DailyModel
import com.yl.common.network.RespStateData
import com.yl.mine.repo.MineRepo


class MineViewModel(private var repo: MineRepo) : BaseViewModel() {

    var bannerList = RespStateData<DailyModel>()
    fun getBanner() = launch { repo.getBanner(bannerList) }

    var dailyList = RespStateData<DailyModel>()
    fun getDailyList(url: String) = launch { repo.getDailyList(url,dailyList) }

}